import Taro from '@tarojs/taro'

export default (data = {}) => {
  const { current, urls = [] } = data
  Taro.previewImage({
    current: current || urls[0],
    urls
  })
}
